// index.js
// const app = getApp()
const { envList } = require('../../../envList.js');

Page({
  data: {
    showUploadTip: false,
    powerList: [
      {
        title: '交互效果',
        url: '/pages/css/interactiveEffect/index',
      },
      {
        title: 'CSS分割线应用',
        url: '/pages/package/separatorCss/index',
      },
      {
        title: '动态背景图',
        url: '/pages/css/animatedCssBackgroundGenerator/index',
      },
      {
        title: '字体动态效果',
        url: '/pages/css/fontDynamicEffects/index',
      },
      {
        title: '毛玻璃',
        url: '/pages/package/blurGround/index',
      },
    ],
    envList,
    selectedEnv: envList?.[0],
    haveCreateCollection: false,
  },
  onClickPowerInfo(e) {
    const index = e.currentTarget.dataset.index;
    const {url} = this.data.powerList[index]
    wx.navigateTo({
      url,
    })
  },

});
